package cn.ljq.entity;

import java.util.Date;

public class Mark {
    private int id;
    private User stu;  //学生（嵌套）
    private Clz clz;  //班级（嵌套）
    private Course course;  //课程编号（嵌套）
    private Double score;  //分数
    private Date tpost;  //登分时间
    private int tid;  //登分教师ID

    public Mark() {
        stu = new User();  //创建空对象 避免控制针
        clz = new Clz();
        course = new Course();  //创建空对象 避免控制针
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public User getStu() {
        return stu;
    }

    public void setStu(User stu) {
        this.stu = stu;
    }

    public Clz getClz() {
        return clz;
    }

    public void setClz(Clz clz) {
        this.clz = clz;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Date getTpost() {
        return tpost;
    }

    public void setTpost(Date tpost) {
        this.tpost = tpost;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    @Override
    public String toString() {
        return "Mark{" +
                "id=" + id +
                ", stu=" + stu +
                ", clz=" + clz +
                ", course=" + course +
                ", score=" + score +
                ", tpost=" + tpost +
                ", tid=" + tid +
                '}' + "\r\n"
                + "\r\n";
    }
}
